package com.example.userdome.controller;

import com.example.userdome.pojo.Score;
import com.example.userdome.service.IScoreService;

import com.example.userdome.service.ScoreService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/scores")
public class ScoreSystemController {
    @Resource
    private IScoreService iScoreService;
    @Resource
    private ScoreService scoreService;


    //查询学号下的所有成绩
    @GetMapping("")
    public List<Score> getAllScore() {
        return iScoreService.list();
    }


}
